/*
 * MainApplication.h
 *
 *  Created on: Mar 29, 2017
 *      Author: zhangjf
 */

#ifndef SRC_MAINAPPLICATION_H_
#define SRC_MAINAPPLICATION_H_

#include <Poco/Util/Application.h>

using namespace Poco::Util;

extern Logger *pLogger;

class MainApplication : public Application
{
public:
	MainApplication();
	virtual ~MainApplication();

	int main(const std::vector<std::string>& args);

private:
	void initLogger(const string& strLogName);
	void doRequest(const std::string& strRequest, std::string& strResp);
};

#endif /* SRC_MAINAPPLICATION_H_ */
